public class Test1 {
    public int a;
    public String str;
    public double dou;
    public boolean boo;

    public Test1(int a, String str, double dou, boolean boo) {
        this.a = a;
        this.str = str;
        this.dou = dou;
        this.boo = boo;
    }

    public String toString() {
        return "[" + a  + "  " + str  + "  " + dou  + "  " + boo + "]";
    }

    public static void main(String[] args) {
        Test1 test1 = new Test1(10,"hhh",222,false);
        System.out.println(test1);
    }
}
